package com.shop.shoporder.mapper;

import com.shop.shoporder.entity.GroupbuySpec;
import com.shop.shoporder.entity.Spec;

import java.util.List;

public interface SpecMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Spec record);

    int insertSelective(Spec record);

    Spec selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Spec record);

    int updateByPrimaryKey(Spec record);

    List<Spec>  getList();
    List<Spec> selectSpaceByGoodsId(int goodId);
    List<Spec> selectActivityGoods();

    Spec searchGoodsPriceByGoodsId(int id);

    //获取团购商品的规格
    List<GroupbuySpec> getGroupbuySpecByGoodId(int goodId);
}